﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

using System.Web.Mvc;
using YouErYuanModels;
using YouErYuanManage.Filter;
using YouErYuanBLL;
using System.Text;
using CommonLib;

namespace YouErYuanManage.Controllers
{
    [IsLogin]
    public class TClassController : Controller
    {
        TClassBLL tclassbll = new TClassBLL();

        //批量设置班级的签到查看截止日期，视频查看截止日期
        public string SetBanJiQiandaoDateVideoDate()
        {
            string qvEndDate = Request["qvEndDate"];             
            string classIdTxt = Request["classIds"];
            string[] ids = classIdTxt.Split(',');
            int count = tclassbll.UpdateClassQiandaoVideoDate(ids, qvEndDate);
            if (count == ids.Length)
            {
                return CommonMethod.FormatJsonObj(1);
            }
            return CommonMethod.FormatJsonObj("");
        }

    }
}